#!/bin/sh
# $Id: install-mod.sh.in 13 2008-05-01 22:58:19Z dubkat $
SHELL="@SHELL@"
CP="@INSTALL@"
top_builddir="@top_builddir@"
LT_OBJDIR="@LT_OBJDIR@"
if test "$#" != "2"; then
	echo "Incorrect number of arguments";
	exit 1
fi

SHLIBEXT="@SHLIBEXT@"
OBJECT="${1}"
OBJBASE=`basename ${1}`
SRCDIR=`echo ${OBJECT}|sed -es/${OBJBASE}//`
DEST="${2}"
SOBASE=$(echo ${OBJBASE} | sed -e's/\.la$//')
TARGETOBJ="${SOBASE}${SHLIBEXT}"

RUN="${CP} ${SRCDIR}${LT_OBJDIR}/${TARGETOBJ} ${DEST}/${TARGETOBJ}"

echo "Installing ${OBJECT} as ${DEST}/${TARGETOBJ}"
$RUN


